import request from '@/config/axios'
import requestDYXT from '@/config/axios'

//根据租户id查询客户企业列表
export const getOutCustomerListByIdentity = async (
  params
) => {
  return await requestDYXT.getDYXT({
    url: '/account-authorize/get-customer-list-by-identity',
    params
  })
}

//查询日、月列表
export const getSalesDayOrMonthListPage = async (
  params
) => {
  return await requestDYXT.getDYXT({
    url: '/report/sell-waybill/statisticsPage',
    params
  })
}

//销售按客户报表导出
export const exportByCustomer = async (params) => {
  return await requestDYXT.downloadDYXT({ url: '/report/sell-waybill/exportByCustomer', params })
}
//销售按客户产品报表导出
export const exportByCustomerAndProduct = async (params) => {
  return await requestDYXT.downloadDYXT({ url: '/report/sell-waybill/exportByCustomerAndProduct', params })
}
